package com.abo.yaas.webservice.exceptions;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@SuppressWarnings("serial")
public class WebServiceException extends WebApplicationException {
    public WebServiceException(String message) {
        super(Response.status(400).entity(message).type(MediaType.TEXT_PLAIN)
                .build());
    }
}
